package main

import (
	"time"

	tg "gopkg.in/telebot.v3"
)

func main() {

	// #开发：5972875368:AAEXufZLjQYkBPNe0M0VdqBa92kJaiIFEMs
	// #演示：6028973607:AAHMfOZ8Uw1zR0eidrwlCiREtmATRqyOBEw
	pref := tg.Settings{
		Token:   "6028973607:AAHMfOZ8Uw1zR0eidrwlCiREtmATRqyOBEw",
		Poller:  &tg.LongPoller{Timeout: 10 * time.Second},
		Verbose: true,
	}

	b, err := tg.NewBot(pref)
	if err != nil {
		panic(err)
	}

	// fmt.Printf("%+v", b.Me)

	// b.Handle("/hello", func(c tg.Context) error {
	// 	return c.Send("Hello!")
	// })

	// b.Start()

	// b.SetCommands([]tg.Command{tg.Command{Text: "/start", Description: "register"}}, tg.CommandScope{Type: tg.CommandScopeAllPrivateChats})
	// b.Commands(tg.CommandScope{Type: tg.CommandScopeAllPrivateChats})
}
